package com.gcxy.config.converter;

import org.springframework.http.MediaType;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
import org.springframework.stereotype.Component;

@Component
public class MediaTypeRConverter extends MappingJackson2HttpMessageConverter {

    public MediaTypeRConverter() {
        super();
        // 设置支持的媒体类型
        setSupportedMediaTypes(MediaType.parseMediaTypes("application/vnd.ms-excel;charset=utf8"));
    }
}
